package com.example.backend.mapper.mysql.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.backend.entitly.mysql.user.Users;
import org.apache.ibatis.annotations.Delete;

/**
 * @author 1
 * @description 针对表【users(用户表)】的数据库操作Mapper
 * @createDate 2025-06-04 09:01:52
 * @Entity com.example.backend.entitly.mysql.user.Users
 */
public interface UsersMapper extends BaseMapper<Users> {
    /**
     * 物理删除用户
     */
    @Delete("DELETE FROM users WHERE user_id = #{userId}")
    int physicalDeleteById(Long userId);
}




